import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { RaceListComponent } from './race-list/race-list.component';
import { RaceAddComponent } from './race-add/race-add.component';

const routes: Routes = [
  { path: '', component: RaceListComponent },
  { path: 'add', component: RaceAddComponent }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class RaceRoutingModule { }
